using System;
using System.Collections.Generic;
using CoreMobile.cfg;
using VABMobile.print;

namespace VABMobile.cfg
{
    public class VABSettings : AbstractSettings
    {
        public readonly static string DEFAULT_ENTERPRISE_NAME = "CDS";

        private string serverIp;
        private int serverPort;
        private int printerPort;
        private string enterpriseName;

        public string ServerIp
        {
            get { return serverIp; }
            set { serverIp = value; }
        }

        public int ServerPort
        {
            get { return serverPort; }
            set { serverPort = value; }
        }

        public int PrinterPort
        {
            get { return printerPort; }
            set { printerPort = value; }
        }

        public string EnterpriseName
        {
            get { return enterpriseName; }
            set { enterpriseName = value; }
        }

        #region Overrides of AbstractSettings

        protected override void init()
        {
            this.serverIp = CoreMobile.net.NetObject.DEFAULT_IP;
            this.serverPort = CoreMobile.net.NetObject.DEFAULT_SEND_PORT;
            this.printerPort = EPrinter.DEFAULT_PRINTER_PORT;
            this.enterpriseName = DEFAULT_ENTERPRISE_NAME;
        }

        #endregion
    }
}